import Layout from '@/layout'

const businessRouter = {
  path: '/business',
  component: Layout,
  redirect: '/business/buy',
  name: 'business',
  meta: {
    title: '业务管理',
    icon: 'el-icon-monitor',
    roles: ['admin']
  },
  children: [
    {
      path: 'buy',
      component: () => import('@/views/business/buy'),
      name: 'buy',
      meta: { title: '采购管理' }
    },
    {
      path: 'sale',
      component: () => import('@/views/business/sale'),
      name: 'sale',
      meta: { title: '销售管理' }
    }
  ]
}
export default businessRouter
